<div class="featured article">
<h3>Updating the graph</h3>

<ul>
    <li>we will add ourselves, friends and ratings</li>
    <li>add a node for yourself and 
return it, let's say your name is "Me" <br/><pre>CREATE (me:User {name: "Me"}) RETURN me;</pre> </li>
    <li>let's check if the node is there: <br/><pre>MATCH (me:User {name: "Me"}) RETURN me.name;</pre></li>
    <li>I want to rate a movie <br/><pre>MATCH (me:User {name: "Me"}),(movie:Movie {title:"The Matrix"})
CREATE (me)-[:RATED {stars : 5, comment : "I love that movie!"}]->(movie);</pre></li>
    <li>which movies did I rate <br/><pre>MATCH (me:User {name: "Me"})-[r:RATED]->(movie)
RETURN r.stars, r.comment,movie.title;</pre>
</li>
</ul>
</div>